#-*- coding:utf-8 -*-
import sys 
import time

# name="张三"
# print(name)
# num=input("输入数字")
# print(num)

# list=[1,2,3,4]
# for i in list:
#     print(i)

#方法的简单运用
# def showlist(i,y):
#     return i+y
# print(showlist(1, 2))

#子类继承父类
# class dongwu:
#     def __init__(self,name,age):
#         self.name=name
#         self.age=age
#     def show(self):
#         print"姓名：{0},年龄：{1}".format(self.name, self.age)
#         
#          
# class dog(dongwu):
#     def __init__(self,name,age,sex):
#             dongwu.__init__(self,name,age)
#             self.sex=sex
#     def show(self):    
#         dongwu.show(self)
#         print"性别是：{}".format(self.sex)
#         logging.debug(self.name,self.age)
#          
# 
#      
# one =dongwu("杰瑞",12).show()  
# two =dog("马瑞", 13, "男").show() 
# 
# 
# print "————————————分隔符————————————"
# def sum(num1,*num2,**num3):
#  print('num1 is',num1)
#  
#  for i in num2:
#   print('num2 is',i)
#   
#  
#  for it in num3:
#   print('num3 is',it)
# 
# sum(1,34,"tom","jack");


# keylist={'one':123,'two':423,'there':878}
# list=["one","two","san"]
# for i in keylist.items():
#  print(i)
# print(list[1:-1])
# str="我是新的写入的内容"
# f=open('C:/Users/Administrator/Desktop/test.txt','a') 
# f.write(str)
# f.close()
# f=open('C:/Users/Administrator/Desktop/test.txt','a+') 
# for line in f:
#     print(line)
#     sys.stdout.flush()
#     time.sleep(2)
# f.close()